package com.cn.bukeManage.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;

import com.cn.bukeManage.pojo.Advertisement;
import com.cn.bukeManage.pojo.App;
import com.cn.bukeManage.pojo.Picture;

public interface APPService {

	public List<Map<String, Object>> getAllAdByPage(Model model,Integer currentPage);
	public List<Map<String,Object>> getAllAppBasic(Model model, Integer currentPage);
	public App getAppByAppId(Integer appId);
	public List<Map<String, Object>> getProblemByAppId(Integer appId);
	public Integer updateAppData(App app);
	public Integer addNewApp(App app);
	public List<Picture> getPictureByAdverId(Integer adverId);
	public Integer updateAdverStatus(Advertisement advertisement);
	public Integer uploadPictureOfAdver(MultipartFile pictureFile,Integer adverId,HttpServletRequest request);

}
